package com.zxx.pattern.decoratorPattern.decorator3;

/**
 * @author zxx on 2021/7/13
 */
public class TestDecorator3 {
    public static void main(String[] args) {
        Shape circle1 = new ShapeCircle();
        circle1.draw();
        circle1 = new DecoratorShapeRed(circle1);
        circle1.draw();


       //Shape circle = new ShapeCircle();
       //System.out.println("Circle with normal border");
       //circle.draw();

       //DecoratorShape redCircle = new DecoratorShapeRed(new ShapeCircle());
       ////Shape redCircle = new RedShapeDecorator(new Circle());
       //System.out.println("\nCircle of red border");
       //redCircle.draw();

       //DecoratorShape redRectangle = new DecoratorShapeRed(new ShapeRectangle());
       ////Shape redRectangle = new RedShapeDecorator(new Rectangle());
       //System.out.println("\nRectangle of red border");
       //redRectangle.draw();

    }
}
